<%@ attribute name="path" required="true"%>
<%@ attribute name="size" required="false"%>

<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<spring:bind path="command.${path}">
	<input type="text" name="${status.expression}" value="${status.value}"
		<c:if test ="${not empty status.errorMessage}">
        class="error"
        title="${status.errorMessage}"
      </c:if>
		<c:if test ="${not empty size}">
        size="${size}"
      </c:if> />
	<c:if test="${not empty status.errorMessage}">
		<img src="<c:url value="/image/error_tip.gif" />"
			title="${status.errorMessage}" />
	</c:if>
</spring:bind>
